import request from "@/utils/requestPro.js";


// // 查询售后详情列表
// export function getAppealDetailAPi(params) {
// 	return request({
// 		url: '/admin/appHome/afterService/businessQueryAfterService',
// 		method: 'get',
// 		params,
// 	});
// }

// 获取售后信息
export function getAftermarketDetailAPi(params) {
	return request({
		url: '/admin/appHome/afterService/businessQueryAfterService',
		method: 'get',
		params,
	});
}

// 商家添加售后结果
export function addAfterServiceResultApi(params) {
	return request({
		url: '/admin/appHome/afterService/addAfterServiceResult',
		method: 'put',
		params,
	});
}
// 商家对售后结果进行申诉
export function businessAddAppealApi(params) {
	return request({
		url: '/admin/appHome/afterService/businessAddAppeal',
		method: 'put',
		params,
	});
}
// 商家取消申诉
export function businessCancelAppealApi(params) {
	return request({
		url: '/admin/appHome/afterService/businessCancelAppeal',
		method: 'put',
		params,
	});
}
// 商家修改申诉信息
export function businessModifyAppealApi(params) {
	return request({
		url: '/admin/appHome/afterService/businessModifyAppeal',
		method: 'put',
		params,
	});
}

// 商家申诉
export function afterSaleAppealApi(data) {
	return request({
		url: '/admin/merchant/afterSale/appeal',
		method: 'post',
		data,
	});
}
// 申诉原因
export function afterSaleReasonApi(params) {
	return request({
		url: '/admin/merchant/afterSale/get/appeal/reason/all',
		method: 'get',
		params,
	});
}

// 认责
export function afterAccountableApi(data) {
	return request({
		url: '/admin/merchant/afterSale/accountable',
		method: 'post',
		data,
	});
}

/* 
 *
 * 获取判责记录 
 * */
export function afterSaleLogsApi(params) {
	return request({
		url: '/admin/merchant/afterSale/get/judge/logs',
		method: 'get',
		params,
	});
}